package minitredis

import (
	"gitee.com/dennis-mxx/gcode-common/menv"
	"gitee.com/dennis-mxx/gcode-common/mlogger"
	"gitee.com/dennis-mxx/gcode-data/mredis"
)

func LoaderRedis(logger *mlogger.TraceLogger) {
	if menv.Environment.Redis != nil && menv.Environment.Redis.Addr != "" {
		mredis.InitRedis(logger, menv.Environment.Redis)
	}
}
